//
//  NSMutableArrayCategory.h
//  ubixar-utils
//
//  Created by Demis Bellot on 17/04/2009.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSMutableArray(NSMutableArrayCategory)

- (void)push:(id)anObject;
- (id)pop;
- (void)insertObjectsFromArray:(NSArray *)anArray atIndex:(int)index;

- (void)replaceObject:(id)oldObject withObject:(id)newObject;

- (void)moveObject:(id)object toIndex:(NSUInteger)toIndex;

// Method for serializing an NSMutableArray object to a NSData in the form of a property list
- (NSData *)asDataReturningError:(NSString **)error;
// Method for retrieving an NSMutableArray object from an property-list-formatted NSData object
+ (NSMutableArray *)arrayWithData:(NSData *)data;

@end